package com.ruoyi.group.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.group.mapper.strokeListMapper;
import com.ruoyi.group.domain.strokeList;
import com.ruoyi.group.service.IstrokeListService;

/**
 * 工单列表Service业务层处理
 * 
 * @author yb
 * @date 2022-03-11
 */
@Service
public class strokeListServiceImpl implements IstrokeListService 
{
    @Autowired
    private strokeListMapper strokeListMapper;

    /**
     * 查询工单列表
     * 
     * @param repairId 工单列表主键
     * @return 工单列表
     */
    @Override
    public strokeList selectstrokeListByRepairId(Integer repairId)
    {
        return strokeListMapper.selectstrokeListByRepairId(repairId);
    }

    /**
     * 查询工单列表列表
     * 
     * @param strokeList 工单列表
     * @return 工单列表
     */
    @Override
    public List<strokeList> selectstrokeListList(strokeList strokeList)
    {
        return strokeListMapper.selectstrokeListList(strokeList);
    }

    /**
     * 新增工单列表
     * 
     * @param strokeList 工单列表
     * @return 结果
     */
    @Override
    public int insertstrokeList(strokeList strokeList)
    {
        strokeList.setCreateTime(DateUtils.getNowDate());
        return strokeListMapper.insertstrokeList(strokeList);
    }

    /**
     * 修改工单列表
     * 
     * @param strokeList 工单列表
     * @return 结果
     */
    @Override
    public int updatestrokeList(strokeList strokeList)
    {
        strokeList.setUpdateTime(DateUtils.getNowDate());
        return strokeListMapper.updatestrokeList(strokeList);
    }

    /**
     * 批量删除工单列表
     * 
     * @param repairIds 需要删除的工单列表主键
     * @return 结果
     */
    @Override
    public int deletestrokeListByRepairIds(Integer[] repairIds)
    {
        return strokeListMapper.deletestrokeListByRepairIds(repairIds);
    }

    /**
     * 删除工单列表信息
     * 
     * @param repairId 工单列表主键
     * @return 结果
     */
    @Override
    public int deletestrokeListByRepairId(Integer repairId)
    {
        return strokeListMapper.deletestrokeListByRepairId(repairId);
    }
}
